/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.wares.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 商品系列管理Entity
 * @author jyangye
 * @version 2018-01-28
 */
public class VivoWaresSerialAh extends DataEntity<VivoWaresSerialAh> {
	
	private static final long serialVersionUID = 1L;
	private String serialName;		// 名称
	private String serialDesc;		// 系列描述
	private Integer waresCount;		// 机型数量
	
	public VivoWaresSerialAh() {
		super();
	}

	public VivoWaresSerialAh(String id){
		super(id);
	}

	@Length(min=0, max=64, message="名称长度必须介于 0 和 64 之间")
	@ExcelField(title="名称", align=2, sort=20)
	public String getSerialName() {
		return serialName;
	}

	public void setSerialName(String serialName) {
		this.serialName = serialName;
	}
	
	@Length(min=0, max=128, message="系列描述长度必须介于 0 和 128 之间")
	@ExcelField(title="系列描述", align=2, sort=30)
	public String getSerialDesc() {
		return serialDesc;
	}

	public void setSerialDesc(String serialDesc) {
		this.serialDesc = serialDesc;
	}
	
	@ExcelField(title="机型数量", align=2, sort=40)
	public Integer getWaresCount() {
		return waresCount;
	}

	public void setWaresCount(Integer waresCount) {
		this.waresCount = waresCount;
	}
	
}